import * as react from "react";
import {Text,View} from "react-native";
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import { Component } from "react";

//引入注册和登录页
import { demo9 } from "./demo9";
import { demo10 } from "./demo10";

//创建页面路由对象
const Stack=createStackNavigator();

//创建主键
export class demo8 extends Component{
  render() {
    return(
      <NavigationContainer>
        <Stack.Navigator>
          <Stack.Screen name={'login'} component={demo9}></Stack.Screen>
          <Stack.Screen name={'register'} component={demo10}></Stack.Screen>
        </Stack.Navigator>
      </NavigationContainer>
    )
  }
}
